{extend name="property/public/insidePageBase" /}
{block name="title"}添加地区信息{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layui-form-pane">
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">地区等级</label>
                        <div class="layui-input-block">
                            <select name="level" disabled>
                                <option value="">请选择</option>
                                {foreach $regionLevel as $k=>$v}
                                <option value="{$k}" {if $level == $k}selected{/if}>{$v}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">父级归属</label>
                        <div class="layui-input-block">
                            <input type="text" disabled class="layui-input" value="{$pidName??'--'}" autocomplete="off"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">地区名称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="name" autocomplete="off" placeholder="请输入地区名称"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">地区编码</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="area_code" autocomplete="off" placeholder="请输入地区编码"/>
                </div>
            </div>

            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">地理经度</label>
                        <div class="layui-input-block">
                            <input type="text" name="longitude" class="layui-input"  autocomplete="off" placeholder="地理经度"/>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">地理伟度</label>
                        <div class="layui-input-block">
                            <input type="text" name="latitude" class="layui-input" autocomplete="off" placeholder="地理伟度"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" class="layui-textarea" name="remark"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <input type="hidden" name="pid" value="{$pid}" />
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form', 'layer', 'upload','laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            upload=layui.upload,
            $ = layui.$,
            laydate = layui.laydate;
    });
</script>
{/block}